<?php
namespace app\controller;

use app\BaseController;

class Index extends BaseController
{
    public function index()
    {
        //pathinfo 访问模式
        //http://tp30.com/index.php/Index/index
        //域名/入口文件/控制器类名/方法名
        return "hello";
    }

    public function helloWorld()
    {
        return 'http://tp30.com/Index.php/Index/helloWorld';
    }
}
